import request from '@/utils/request'

// 查询护工信息列表
export function listNurseInfo(query) {
  return request({
    url: '/caregiver/nurseInfo/list',
    method: 'get',
    params: query
  })
}

// 查询护工信息详细
export function getNurseInfo(nurseId) {
  return request({
    url: '/caregiver/nurseInfo/' + nurseId,
    method: 'get'
  })
}

// 新增护工信息
export function addNurseInfo(data) {
  return request({
    url: '/caregiver/nurseInfo',
    method: 'post',
    data: data
  })
}

// 修改护工信息
export function updateNurseInfo(data) {
  return request({
    url: '/caregiver/nurseInfo',
    method: 'put',
    data: data
  })
}

// 删除护工信息
export function delNurseInfo(nurseId) {
  return request({
    url: '/caregiver/nurseInfo/' + nurseId,
    method: 'delete'
  })
}
